#!/usr/bin/python3
# -*- coding: utf-8 -*-
'模塊注釋'
from time import sleep

__author__ = 'Grant Wu'
import eventlet


def handle(index):
    print('======>begin handle')
    for x in range(20):
        print('index - %s : %s' % (index, x))
        eventlet.sleep(0.2)
    return 'sucess!!'

if __name__ == '__main__':
    result = eventlet.spawn(handle,1)
    result2 = eventlet.spawn(handle,2)
    result.wait()
    result2.wait()
    print('finishe!!')
